
import re

class xx:
   regex =  u"<table.*?class=\"result\".*?>.*?<\/a>"
   content = ['aabab']
   arr = []
   res = re.findall(regex,content)
   if res:
       for r in res:
           arr.append(r)
           print(r)